package java56_2;

public class School {
	// 成员变量->属性
	String name;
	String addr;
	String city;
	String xiaozhang;
	String foundation;
	int classRoooms, labs;

	public void showInformation() {
		String s = getAddress();// 不需要new
		System.out.println("学校的名字叫" + name);
		System.out.println("地址在" + s + "，负责人是" + xiaozhang);
		System.out.println("成立于" + foundation);
		System.out.println("拥有" + classRoooms + "间教室，" + labs + "间机房！");
	}

	// public String getAddress() {
	// String ad = city + addr;
	// return ad;
	// }
	public String getAddress() {
		return city + addr;
	}
}
